#ifndef PSD_BACKEND_SLABS_H

#include "psd_conn.h"
#include "psd_session.h"
#include "psd_settings.h"

#define PSD_SLAB_ORDER       28
#define PSD_SLAB_SIZE        (1UL<<PSD_SLAB_ORDER)

extern pthread_mutex_t xfer_total_lock;
extern pthread_cond_t xfer_total_cond;
extern uint64_t xfer_total_bytes;

int psd_backend_slabs_start();

int psd_slabs_connect_control(psdSess *sess);
int psd_slabs_connect_data(psdSess *sess);
int psd_slabs_start_data_listener(psdSess *sess);

psdSess *psd_slabs_get_sess();

#endif
